<?php
    
    require_once( MODEL_DIR . "Model.class.php");
    
    class EntrevistaModel extends Model{
        
        protected $query;
        
        public function __construct()
        {
            parent::__construct();
        }
       
        # lista as notas do site 
        public function get_entrevista(){
            
            $set_where = NULL;     
            $set_order = "id DESC";     
            $set_limit = 1;
            $set_cache = 1;
            
            return parent::read("entrevista",$set_where,$set_order,$set_limit,$set_cache);
        }
        
         public function get_entrevista_id($id){
            
            $set_where = "id = $id";     
            $set_order = NULL;     
            $set_limit = NULL;
            $set_cache = 1;
            
            return parent::read("entrevista",$set_where,$set_order,$set_limit,$set_cache);
        }
        
        
        public function get_outras_entrevistas($id){
            
            $set_where = "id != $id";     
            $set_order = "id DESC";     
            $set_limit = 20;
            $set_cache = 1;
            
            return parent::read("entrevista",$set_where,$set_order,$set_limit,$set_cache);
        }
        
        
                
        
        
        
    }        
?>